Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move derivative agg to module #91014

Merged
merged 5 commits into from
Oct 31, 2022
Merged

Move derivative agg to module #91014

merged 5 commits into from
Oct 31, 2022

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Oct 19, 2022

This cleans up the derivative pipeline agg in a few days:

  1. Moves it to the aggregations module ala Centralize aggregations into a module #90283
  2. Drops the ceremonial interface from the result ala Remove interfaces for aggregation results #82273
  3. Adds comprehensive REST layer tests for it ala Comprehensive aggregation REST tests #26220
  4. Removes some ESIntegTestCase tests that duplicated those in the AggregatorTestCase.

This cleans up the derivative pipeline agg in a few days:
1. Moves it to the `aggregations` module ala elastic#90283
2. Drops the ceremonial interface from the result ala elastic#82273
3. Adds comprehensive REST layer tests for it ala elastic#26220
4. Removes some `ESIntegTestCase tests` that duplicated those in the
   `AggregatorTestCase`.
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Oct 19, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@@ -65,12 +65,11 @@ protected SearchPlugin registerPlugin() {
return new AggregationsPlugin();
}

// TODO: the base test class should be able to get this from the search plugin? (^)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we're registering the high level REST client's version which isn't in the SearchPlugin.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should be removing these as we go. We don't need to parse the thing any more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we also had these tests to test the xcontent serialization (similarly how we test the binary serialization)? We lose that if we drop these tests?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(the downside is that we need to maintain the xcontent parsing in tests...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. That's why I didn't nuke it. It's not obviously right. Before we had the high level REST client we never tested the round trip here - we'd just render xcontent and test in REST tests or specific xcontent renderings. Now we have randomized parsing. But it's quite heavy.

@nik9000
Copy link
Member Author

nik9000 commented Oct 19, 2022

run elasticsearch-ci/packaging-tests-windows-sample

1 similar comment
@nik9000
Copy link
Member Author

nik9000 commented Oct 19, 2022

run elasticsearch-ci/packaging-tests-windows-sample

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nik9000
Copy link
Member Author

nik9000 commented Oct 20, 2022

@nik9000 nik9000 requested a review from martijnvg

Ignore that. I didn't realize you'd already approved.

@nik9000 nik9000 merged commit 1474d79 into elastic:main Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants